import { RoutesDataItem } from "@/utils/routes";
import logoUrl from '@/assets/images/logo.png'
/**
 * 站点配置
 * @author LiQingSong
 */
export interface SettingsType {
    /**
     * 站点名称
     */
	siteName: string;
	/**
	 * 站点标题
	 */
    siteTitle: string;
	/**
	 * 站点logo
	 */
    siteLogo: string;
  
    /**
     * 顶部菜单开启
     */
    topNavEnable: boolean;
  
    /**
     * 头部固定开启
     */
    headFixed: boolean;

    /**
     * tab菜单开启
     */
     tabNavEnable: boolean;

     /**
     * 站点首页路由
     */
    homeRouteItem: RoutesDataItem;
  
    /**
     * 站点本地存储Token 的 Key值
     */
    siteTokenKey: string;
  
    /**
     * Ajax请求头发送Token 的 Key值
     */
    ajaxHeadersTokenKey: string;
  
    /**
     * Ajax返回值不参加统一验证的api地址
     */
    ajaxResponseNoVerifyUrl: string[];

    /**
     * iconfont.cn 项目在线生成的 js 地址
     */
    iconfontUrl: string[];
	
	SecretKey:string;
}
  
const settings: SettingsType = {
	siteName:'GoodAdmin',
    siteTitle: 'GoodAdmin管理系统',
	siteLogo:logoUrl,
    topNavEnable: true,
    headFixed: true,
    tabNavEnable: true,
    homeRouteItem: {
        icon: 'control',
        title: 'index-layout.menu.home.workplace',
        path: '/home/workplace',
		name:'workplace',
        component: ()=> import('@/views/home/index.vue')
    },
    siteTokenKey: 'g-token',
    ajaxHeadersTokenKey: 'g-token',
    ajaxResponseNoVerifyUrl: [
        '/user/login', // 用户登录
        '/user/info', // 获取用户信息
    ],
    iconfontUrl: [],
	SecretKey:'fcea92cf42b8c9359'
};

export default settings;
  